//
//  DDMoneybagHomepageService.h
//  DingDongZP
//
//  Created by 杨政涛 on 16/10/18.
//  Copyright © 2016年 51ledian.com. All rights reserved.
//

#import "DDBaseService.h"

@interface DDMoneybagHomepageService : DDBaseService

/**
 *  查询钱包页面数据
 *
 *  @param successBlock <#successBlock description#>
 *  @param failBlock    <#failBlock description#>
 */
- (void)queryMoneybagHomepageSuccessBlock:(successBlock)successBlock
                               failBlock:(faileBlock)failBlock;


/**
 *   查询账户明细数据
 *
 *  @param page         可选参数，默认到底自动加载，当返回空数据即没有更多数据了，每页20条数据，页码从0开始
 *  @param type         默认全部，1收入 －1支出
 *  @param successBlock <#successBlock description#>
 *  @param failBlock    <#failBlock description#>
 */
- (void)queryMoneybagDetailWithPage:(NSInteger)page withType:(NSString *)type  SuccessBlock:(successBlock)successBlock
                          failBlock:(faileBlock)failBlock;


/**
 *  充值种类列表
 *
 *  @param successBlock <#successBlock description#>
 *  @param failBlock    <#failBlock description#>
 */
- (void)queryRechargeTypeSuccessBlock:(successBlock)successBlock
                                failBlock:(faileBlock)failBlock;


/**
 *  共享账户列表
 *
 *  @param successBlock <#successBlock description#>
 *  @param failBlock    <#failBlock description#>
 */
- (void)queryShareAccountSuccessBlock:(successBlock)successBlock
                            failBlock:(faileBlock)failBlock;

/**
 *  保存共享账户
 *
 *  @param currentID    新建不需要，修改需要(当前共享账户在数据库表中的id)
 *  @param remark       被子
 *  @param share_mobile 共享的手机号
 *  @param successBlock <#successBlock description#>
 *  @param failBlock    <#failBlock description#>
 */
- (void)saveShareAccountWithid:(NSString *)currentID withRemark:(NSString *)remark withShare_mobile:(NSString *)share_mobile SuccessBlock:(successBlock)successBlock failBlock:(faileBlock)failBlock;


/**
 *  删除共享账户
 *
 *  @param currentID    当前共享账户在数据库表中的id
 *  @param successBlock <#successBlock description#>
 *  @param failBlock    <#failBlock description#>
 */
- (void)deleteAccountWithid:(NSString *)currentID SuccessBlock:(successBlock)successBlock failBlock:(faileBlock)failBlock;


/**
 *  后台收到用户支付单接口
 *
 *  @param payArryID    选择支付种类数组的ID
 *  @param successBlock <#successBlock description#>
 *  @param failBlock    <#failBlock description#>
 */
- (void)prePayForWeiXinToSeverWithid:(NSString *)payArryID SuccessBlock:(successBlock)successBlock failBlock:(faileBlock)failBlock;


@end
